package com.example.fresheveryday.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.fresheveryday.po.Product;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;


import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ll
 * @since 2023-07-05
 */
public interface ProductService extends IService<Product> {
    IPage<Product> getProductByConditions(IPage<Product> page, @Param("ew") Wrapper wrapper);
    int countByConditions(@Param("ew") Wrapper wrapper);
    List<Product> newRecommend(int id);
    List<Product> getFifthView();

}
